package service;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.json.JSONArray;
import org.json.JSONObject;

import dao.PeizhiDao;

import po.tree_one;
import po.tree_three;
import po.tree_two;

public class PeizhiServiceImp implements PeizhiService{
 
	private PeizhiDao peizhidao;
	
	public void setPeizhidao(PeizhiDao peizhidao) {
		this.peizhidao = peizhidao;
	}

	@Override
	public String addPeizhi(Set<tree_one> tree_ones,Set<tree_two> tree_twos,Set<tree_three> tree_threes){
		// TODO Auto-generated method stub
        
		return this.peizhidao.addPeizhi(tree_ones, tree_twos, tree_threes);
	}

	@Override
	public List<tree_one> list_tree1() {
		// TODO Auto-generated method stub
		return this.peizhidao.list_tree1();
	}

	@Override
	public List<tree_two> list_tree2() {
		// TODO Auto-generated method stub
		return this.peizhidao.list_tree2();
	}

	@Override
	public List<tree_three> list_tree3() {
		// TODO Auto-generated method stub
		return this.peizhidao.list_tree3();
	}

	

}
